<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="com.msmall.community.space.util.SpaceConstants" language="java"%>
<c:set var="SPACE_WIDGET_PART_PROFILE" value="<%=SpaceConstants.SPACE_WIDGET_PART_PROFILE%>"></c:set>
<c:set var="SPACE_WIDGET_PART_WORDS" value="<%=SpaceConstants.SPACE_WIDGET_PART_WORDS%>"></c:set>

<tiles:useAttribute name="userInfo"/>
<div class="spaw220 fl">
	<div class="spaw220nav">
		<p class="fl sHBff">个人信息</p>
		<p class="fr">
			<a class="lfff" href="<c:url value='/space/index.do?usr=${userInfo.userid}&part=${SPACE_WIDGET_PART_PROFILE}'/>">更多</a>
		</p>
	</div>
	<dl class="spamessage">
		<dt>
			<img id="img_user_avatar" style="width:100px;height:100px;" alt="我的头像" src="${ctx}/${userInfo.avatar}">
		</dt>
		<dd>
		<p>
			<span class="spaleave"></span>
			<a href="<c:url value='/space/index.do?usr=${userInfo.userid}&part=${SPACE_WIDGET_PART_WORDS}'/>">
				查看留言
			</a>
		</p>
		<p>
			<span class="spaheadphoto"></span>
			<a href="javascript:uploadAvatar()">编辑头像</a>
		</p>
		<p>
			<span class="spamaterial"></span>
			<a href="<c:url value='/space/index.do?usr=${userInfo.userid}&part=${SPACE_WIDGET_PART_PROFILE}'/>">
				更换资料
			</a>
		</p>
		</dd>
	</dl>
	<div class="spaw220nav1 martop5">
		<p class="fl sHBff">统计信息</p>
		<p class="fr"></p>
	</div>
	<p class="spaleftcount">
		已有
		<span class="sf00" style="width:20px;"><c:out value="${userProfile.visitAmount}"/></span>
		人来访过<br>
		<span>积分: <c:out value="${userInfo.score.score}"/></span>
		<span>好友: <c:out value="${userProfile.rosterAmount}"/></span>
		<span>主题: <c:out value="${userProfile.topicAmount}"/></span>
		<span>日志: <c:out value="${userProfile.diaryAmount}"/></span>
		<span>相册: <c:out value="${userProfile.albumAmount}"/></span>
	</p>
</div>
